#include <iostream>

using namespace std;

int main(void)
{
    //三只小猪称体重，判断哪只最重

    //创建三只小猪的体重
    int piga = 0;
    int pigb = 0;
    int pigc = 0;

    //让用户输入三只小猪的体重
    cout << "请输入小猪a的体重：";
    cin >> piga;
    cout << "请输入小猪b的体重：";
    cin >> pigb;
    cout << "请输入小猪c的体重：";
    cin >> pigc;

    //判断哪只最重
    if(piga > pigb)
    {
        if(piga > pigc)
        {
            cout << "小猪a最重，重" << piga << "kg" << endl;
        }
        else
        {
            cout << "小猪c最重，重" << pigc << "kg" << endl;
        }
    }
    else
    {
        if(pigb > pigc)
        {
            cout << "小猪b最重，重" << pigb << "kg" << endl;
        }
        else
        {
            cout << "小猪c最重，重" << pigc << "kg" << endl;
        }
    }

    return 0;
}